package org.xiji.strategy;

import org.xiji.strategy.behavior.behavior.impl.DoBasketball;

/**
 * 策略模式启动
 */
public class StrategyMain {
    public static void main(String[] args) {

        People xiji = new People("xiji");

        //打篮球
        String behavior = new PeopleBehaviorStrategy(new DoBasketball()).doSomething();

        xiji.behavior(behavior);
    }
}
